<%@ page contentType="text/html;charset=UTF-8"  isELIgnored="false" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>add</title>
</head>
<body>
<h1 align="center" >修改图书 <a href="selectBooks">返回</a> </h1>
<form action="updateBook" method="post">
    <table border="1" align="center" width="600px">
        <tr>
            <input  type="hidden" name="id" value="${book.id}"/>
            <td>书名:<input  type="text" name="name" value="${book.name}"/></td>
        </tr>
        <tr>
            <td>作者:<input  type="text" name="author" value="${book.author}"/></td>
        </tr>
        <tr>
            <td>出版社:<input  type="text" name="publish" value="${book.publish}"/></td>
        </tr>
        <tr>
            <td>出版日期:
                <input  type="text" name="publishdate" value="<fmt:formatDate value="${book.publishdate}" pattern="yyyy-MM-dd"></fmt:formatDate>"/>

                (yyyy-MM-dd)</td>
        </tr>
        <tr>
            <td>页数:<input  type="text" name="page" value="${book.page}"/></td>
        </tr>
        <tr>
            <td>价格:<input  type="text" name="price" value="${book.price}"/></td>
        </tr>
        <tr>
            <td>内容摘要:<input  type="text" name="content" value="${book.content}"/></td>
        </tr>
        <tr>
            <td><input type="submit" value="修改图书"/></td>
        </tr>
    </table>
</form>
</body>
</html>
